package com.hexinfo.dmpro.demo.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hexinfo.dmpro.demo.dao.TestMapper;
import com.hexinfo.dmpro.demo.model.Test;
import com.hexinfo.dmpro.demo.service.TestService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TestServiceImpl extends ServiceImpl<TestMapper, Test> implements TestService {
    @Override
    public Page queryList(Page page, Test test) {
        LambdaQueryWrapper<Test> wrapper = Wrappers.lambdaQuery();
        wrapper.select();
        Page returnPage = this.baseMapper.selectPage(page, wrapper);
        return returnPage;
    }

    @Override
    public List<Test> getList1() {
        List list = this.baseMapper.getList1();
        return list;
    }
}
